package com.qiaoanju.back.service.system;

import com.qiaoanju.back.domain.system.UserModel;
import com.qiaoanju.back.dto.system.UserDto;

/**
 * Created by eversec
 * on 2017/9/21.
 */
public interface IUserService {



    /**
     *
     * @param user
     * @return
     */
    int insert(UserModel user);

    /**
     *
     * @param username
     * @param password
     * @return
     */
    public UserModel getUserByNamePwd(String username ,String password);

    /**
     *
     * @param username
     * @return
     */
    UserModel getUserByUsername(String username);

    /**
     * 获取登录用户
     * @param username
     * @return
     */
    UserDto getLoginUserByUsername(String username);
}
